package com.wuhao.springbootasynctask.async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author: wuhao
 * @since: 2021/5/2 16:48
 */
@Service
public class AsyncServiceImpl implements AsyncService {

    @Override
    @Async
    public void HelloAsync() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("数据正在处理......");
    }
}
